﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;

namespace ProcessManager
{
    /// <summary>
    /// 进程信息实体
    /// </summary>
    public class ProcessInfo
    {
        /// <summary>
        /// 
        /// </summary>
        public int ProId
        {
            set;
            get;
        }

        public string Name
        {
            set;
            get;
        }

        /// <summary>
        /// Cpu占用率
        /// </summary>
        public int CpuUsage
        {
            set;
            get;
        }
        /// <summary>
        /// 无力内存占用
        /// </summary>
        public int PhysicalMemSize
        {
            set;
            get;
        }
        /// <summary>
        /// 虚拟内存占用
        /// </summary>
        public int LogicalMemSize
        {
            set;
            get;
        }

        /// <summary>
        /// 可执行文件路径
        /// </summary>
        public string FilePath
        {
            set;
            get;
        }
        /// <summary>
        /// 外挂配置文件
        /// </summary>
        public ConfigBuilder.ConfigBuilder PlugConfig
        {
            set;
            get;
        }
        /// <summary>
        /// 程序开始运行的时间
        /// </summary>
        public DateTime StartTime
        {
            set;
            get;
        }

        /// <summary>
        /// Cpu占用率无变化次数
        /// </summary>
        public int CpuUsageFixedTimes
        {
            set;
            get;
        }
        /// <summary>
        /// 内存使用无变化次数
        /// </summary>
        public int MemSizeFixedTimes
        {
            set;
            get;
        }
    }
}

